Kubernetes Fundamentals by Unknown

Kubernetes Fundamentals by Unknown

Author:Unknown
Language: eng
Format: epub


Chapter 5 ObjeCts ImpOrtant FOr a seCure Kubernetes Cluster

But the clear disadvantage of working with the default or only one

namespace is that you cannot take advantage of distributing resources

based on a defined strategy and implementing resource quotas and limits.

Do All Kubernetes Resources Fall Under

Some Namespace?

No, not all Kubernetes resources fall under some namespace. Some high-

level objects, such as nodes and persistent volumes, do not fall under any

category. All low-level objects such as pods, jobs, cron jobs, services, etc.,

fall under some namespace.

How to Check Which Resources Are in a Namespace

And Which Are Not?

You can use the following commands to list the objects that fall under a

namespace and that do not fall under a namespace:

• kubectl api-resources --namespaced=true

• kubectl api-resources --namespaced=false

The first command will list those resources that fall under a

namespace, and the second command will list those resources that do not

fall under a namespace.

In Figure 5-18 you can see that objects such as nodes, namespaces, persistent volumes, etc., do not fall under any namespace.

Figure 5-18. Execution logs depicting the objects that do not fall

under a namespace

184



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.